package com.base.commons.tools.constant;

/**
 * 常量类
 *

 */
public interface Constant {

	public static final String BEARER_TOKEN_TYPE = "bearer ";
	public static final String BASIC_TOKEN_TYPE = "Basic ";
	public static final String MDC_KEY = "customTraceId";
	/**
	 * 部门根节点标识
	 */
	Long DEPT_ROOT = 0L;

	/**
	 * 是
	 */
	public static final Byte YES = (byte) 1;

	/**
	 * 否
	 */
	public static final Byte NO = (byte) 0;

	/**
	 * 未命中
	 */
	public static final String MISSES = "1";

	/**
	 * 命中
	 */
	public static final String HIT = "0";

	/**
	 * 成功
	 */
	int SUCCESS = 1;
	/**
	 * 失败
	 */
	int FAIL = 0;
	/**
	 * OK
	 */
	String OK = "OK";
	/**
	 *  升序
	 */
	String ASC = "asc";
	/**
	 * 降序
	 */
	String DESC = "desc";
	/**
	 * 删除字段名
	 */
	String DEL_FLAG = "del_flag";
	/**
	 * 创建时间字段名
	 */

	String CREATE_TIME = "create_time";
	/**
	 * 数据权限过滤
	 */
	String SQL_FILTER = "sqlFilter";
	/**
	 * 当前页码
	 */
	String PAGE = "page";
	/**
	 * 每页显示记录数
	 */
	String LIMIT = "limit";
	/**
	 * 排序字段
	 */
	String ORDER_FIELD = "orderField";
	/**
	 * 排序方式
	 */
	String ORDER = "order";
	/**
	 * token header
	 */
	String TOKEN_HEADER = "token";

	/**
	 * 菜单根节点标识
	 */
	Long MENU_ROOT = 0L;
	String USER="user";
	/**
	 * 滚动分页最后一个id
	 */
	String SEARCH_AFTER_ID = "search_after_id";
	/**
	 * 查询上一页id
	 */
	String SEARCH_BEFORE_ID = "search_before_id";
	/**
	 * es 分页偏移量
	 */
	String FROM = "from";


}
